Xbasic
Helper::HtmlProcessor.ExtractTags Method
Syntax
c ExtractTags(C tagNames, C html [, N limit = -1 [, L outer = .t.]])
Arguments
- tagNames
Comma separated list of tags to extract
- html
Html source to scan for tags
- limit
Optional limit (i.e. 1 means only process the first, 2 means process first 2, etc).
- outer
Optional flag to toggle outer/inner (setting to false means return contents of tag)
Description
Return only tags in comma separated tagname list.
Example
In the following example, all the link tags are extracted from a web page.
dim html as c = ""+http_get("www.cnn.com").body ? helper::HtmlProcessor::ExtractTags("link",html,-1,.f.) =
See Also